package com.qding.park.adapter.report.valid;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

//@NotBlank
@Constraint(validatedBy={CardTypeValid.class})
@Documented
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface CardType {

    String message() default "卡类型不能为空且必须为fixed-property(固定车位(产权)),lease-property(固定车位(租赁)),month-credit(充值(月)),number-credit(充值(次)),time-credit(充值(时间)),temp(临停)之一";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
